home *** CD-ROM | disk | FTP | other *** search
/ BMUG PD-ROM BV3 / BMUG PD-ROM Version BV3 (CDRM1097900).iso / HyperCard / Business / Checkbook Balancer⁄Mgr 2.1 / Checkbook Balancer_Mgr 2.1 / stack_-1.xml < prev    next >
Extensible Markup Language  |  1991-10-27  |  4KB  |  24 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in.1</name>
  5.     <id>-1</id>
  6.     <cardCount>3</cardCount>
  7.     <cardID>4114</cardID>
  8.     <listID>5710</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><true /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>512</width>
  14.         <height>342</height>
  15.     </cardSize>
  16.     <script>on openStackput the short name of this stack into fld "address"hide menuBarput empty into oneDownput empty into twoDownput empty into threeDownput empty into fourDownput empty into fiveDownget the number of lines in fld "new bal"put it into sHoldput (sHold * 16) into sHoldset scroll of fld "new bal" to sHoldend openStackon arrowKey directionif direction is "down" then click at 495,322if direction is "up" then click at 495,136else pass arrowkeyend arrowkeyon FindItglobal holder, fldHolderput empty into fld "searchResults"ask "What ‚ÄòDescription‚Äô, ‚ÄòCheck#‚Äô, or ‚ÄòDate‚Äô would" &¬¨" you like to search for? (Include ‚Äò#‚Äô sign for ‚ÄòCheck#‚Äô searches)"if it is empty thenhide fld "searchResults"hide bg btn "hide search results"exit findItend ifput it into holderif char 1 of holder is not in "#,1,2,3,4,5,6,7,8,9,0" thenput fld "describe" of this card into fldHoldershow fld "searchResults"show bg btn "hide search results"elseif char 1 of holder is in "#" thenput fld "ck#" into fldHolderrepeat with x=1 to the number of lines in fldHolderset cursor to busyif holder is in line x of fldHolder thenset scroll of fld "new bal" to ((x-1)*16)exit findItend ifend repeatelseput fld "date" into fldHolderend ifend ifrepeat with x=1 to the number of lines in fldHolderset cursor to busyif holder is not in line x of fldHolder thennext repeatelseif line x of fld "credit" is empty thenput "Ck" && line x of fld "Ck#" && line x of fld¬¨"Describe" && line x of fld "debit" && "line/" && x & return after fld "searchResults"elseput line x of fld "date" && line x of fld "Describe" && ¬¨line x of fld "credit" && "line/" && x & return after fld "searchResults"end ifend ifput (scroll of fld "searchResults" + 16) into scrollHoldset scroll of fld "searchResults" to scrollholdend repeatif fld "searchResults" is empty thenanswer "Sorry, but no ‚ÄòMatch‚Äô!"hide fld "searchResults"exit findItelseput return & "Total Found ‚Äì " & (number of lines in fld "searchResults") after last line of fld "searchResults"put the last word of line 1 of fld "searchResults" into tempset scroll of fld "searchResults" to 0set scroll of fld "new bal" to (temp-1) *16end ifshow fld "searchResults"show bg btn "hide search results"end finditfunction fastSort inforepeat with x = 1 to the number of lines in inforepeat with y = x to the number of lines in infoset cursor to busyif line x of info > line y of info thenget line y of infoput line x of info into line y of infoput it into line x of infoget line y of fld "acctDels"put line x of fld "acctDels" into line y of fld "acctDels"put it into line x of fld "acctDels"end ifend repeatend repeatreturn infoend fastSort-- thank you Dan Winkler and/or Scot Kamins (--whoever wrote that)on closeStackif the freeSize of this stack > 10000 thendoMenu "Compact Stack"end ifend closeStack</script>
  17.     <background id="2747" file="background_2747.xml" name="Budget" />
  18.     <background id="2867" file="background_2867.xml" name="Balance Results" />
  19.     <background id="3488" file="background_3488.xml" name="tax deducts" />
  20.     <card id="4114" file="card_4114.xml" marked="false" name="First Card" owner="2747" />
  21.     <card id="5985" file="card_5985.xml" marked="false" name="Deducts" owner="3488" />
  22.     <card id="3600" file="card_3600.xml" marked="false" name="" owner="2867" />
  23. </stack>
  24.